Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Some sort of variable? (http://www.mysidiaadoptables.com/forum/showthread.php?t=1928)

The Codfin Keeper 02-20-2011 08:27 AM

Some sort of variable?
 
I looked at the code of the main theme on my site, and it references things like :SITENAME: and :SIDEFEED: .

How can I make my own?

Hall of Famer 02-20-2011 08:36 AM

Well you can modify enddayne's template on your own, simply open the html file templates/simple/template.html and find the corresponding codes to edit. Do not remove copyrights though, unless you have her permission.

The Codfin Keeper 02-20-2011 08:39 AM

I didn't remove any copyrights, just so you know. ^^

I have nothing in /simple except the inc folder and starter.html.

Hall of Famer 02-20-2011 09:39 AM

Oh I am sorry the html file is named starter.html in Mys v1.1.x series. Open it with a text editor and change the site name and site owner part of the codes.

The Codfin Keeper 02-20-2011 09:42 AM

I try that, but what I don't understand is, how were each of the variable things like :SITENAME: and :SIDEFEED: were defined - that's what I'm trying to find out.

Hall of Famer 02-20-2011 09:49 AM

Well this is not what I am talking about. The site name and slogan can be edited in admin control panel. Near the bottom of the page you should be able to find a line that looks like this:

PHP Code:

<p><a href="">Your Site</a> &copy;Copyright Year <a href="">Your Name</a> <brPowered by <a href="http://www.mysidiaadoptables.com/forum" target="_blank">Mysidia Adoptables v1.1.4</a> &#9733; Theme by <a href="http://design.sessions-st.net">Sessions Street</a> ★ Valid <a href="http://validator.w3.org/check?uri=referer">HTML</a> &amp; <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></p> 

Edit the 'your site' and 'your name' parts to whatever you like, and leave the rest of codes unchanged.

The Codfin Keeper 02-20-2011 09:51 AM

What I was originally asking is, where are the variables like in;

PHP Code:

<tr><td><h1>:SITENAME:<span><strong>:SLOGAN:</strong> &lceil; :ARTICLETITLE: &rfloor;</span

defined?

Hall of Famer 02-20-2011 09:57 AM

Oh this is actually not PHP. I believe it is referenced to the site settings you can manually edit in admin control panel though.

fadillzzz 02-20-2011 10:09 AM

You want to make one of those?
just put something like this before the echo $template line
PHP Code:

$template replace(':NEWVAR:',$newvar,$template); 

now in the template .html file, just a put the :NEWVAR: whereever you want. But don't forget to define the $newvar variable in the .php file else it will be blank

The Codfin Keeper 02-20-2011 11:17 AM

Thank you fadillzzz! :)

lol unfortunately the code I'm trying to make appear using that messes up regardless...but I'll keep that for future reference. :)


All times are GMT -5. The time now is 11:04 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.