Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 10-20-2012, 06:13 PM
Aasixx's Avatar
Aasixx Aasixx is offline
.. your friendly geek. c:
 
Join Date: Nov 2011
Location: somewhere ur not.
Posts: 191
Gender: Female
Credits: 27,451
Aasixx is on a distinguished road
Default Question?

I'm creating a new page with PHP (I already have it setup) because I grabbed my template.html and replaced :ARTICLECONTENT: with my PHP's text. Well, in my side bar I have (in functions/functions.php) $sidebar = "<h2><font color='#ccb9ec'>Welcome, {$loggedinname}!<br /></font></h2> but {$loggedinname} doesn't work in my normal PHP file. How can I get it to work where it will show the logged in user's username? Because :SIDEFEED:, :BROWSERTITLE:, etc doesn't work in my PHP file. I also need to get the logged in user's cash amount to show up.. Thanks.
__________________
Reply With Quote
  #2  
Old 10-20-2012, 09:42 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 113,255
Abronsyth is on a distinguished road
Default

Eh, to create a new page that is still showing the site's theme, then you find the file called 'Blank.php' and copy it (rename it to the name of the page you're trying to make) and put your content between the things that say something like start here and end here....or something like that...

...is that what you are intending to do?
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #3  
Old 10-20-2012, 09:51 PM
Aasixx's Avatar
Aasixx Aasixx is offline
.. your friendly geek. c:
 
Join Date: Nov 2011
Location: somewhere ur not.
Posts: 191
Gender: Female
Credits: 27,451
Aasixx is on a distinguished road
Default

Mmm.. Nope.. That didn't seem to work. It gave me a parse/syntax error.
__________________
Reply With Quote
  #4  
Old 10-21-2012, 06:34 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 332,377
Hall of Famer is on a distinguished road
Default

Well :SIDEFEED:, :BROWSERTITLE: are special keywords used in the html template file that reference back to the php variable stored in your database's setting variables. They are like placeholders in the template file, way too complicated for beginners to play with. If you want to create a variable of your sitefeed(sidebar) and browsertitle, use these instead:

PHP Code:
$sidebar getsidebar();
$browsertitle grabanysetting("browsertitle"); 
This will work out equally well, and it is good for beginners to use and learn programming. Lemme know if you encounter any further issues.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #5  
Old 10-21-2012, 02:29 PM
Aasixx's Avatar
Aasixx Aasixx is offline
.. your friendly geek. c:
 
Join Date: Nov 2011
Location: somewhere ur not.
Posts: 191
Gender: Female
Credits: 27,451
Aasixx is on a distinguished road
Default

This is what it looks like on my page (I put the php code where :ARTICLECONTENT: would have gone and it works fine) and here's what it looks like:

PHP page:
<div id="sidebar">
<ul>



$sidebar = getsidebar();
</ul>

</div>

My actual template.html:

<div id="sidebar">
<ul>



:SIDEFEED:
</ul>

</div>

The $sidebar = getsidebar(); didn't work. It just shows that text where my sidebar should be.
__________________
Reply With Quote
  #6  
Old 10-24-2012, 04:44 PM
Aasixx's Avatar
Aasixx Aasixx is offline
.. your friendly geek. c:
 
Join Date: Nov 2011
Location: somewhere ur not.
Posts: 191
Gender: Female
Credits: 27,451
Aasixx is on a distinguished road
Default

Any other ideas.. ?
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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

Currently Active Users: 9445 (0 members and 9445 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636