Fiji Web Design
Welcome, Guest
Please Login or Register.    Lost Password?
Re:How to add additional text (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:How to add additional text
#551
p0oo9ip0o (User)
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Re:How to add additional text 3 Years, 1 Month ago Karma: 0  
the title of the article is working fine, but the category of the current article is not working where should i found the $custom_text variable to add the $article->cat and also how do i make the $article->cat in to a text link?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#563
p0oo9ip0o (User)
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Re:How to add additional text 3 Years, 1 Month ago Karma: 0  
knock knock
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#564
admin (Admin)
Admin
Posts: 475
graph
User Online Now Click here to see the profile of this user
Re:How to add additional text 3 Years, 1 Month ago Karma: 10  
Try doing a var_dump() of the $article Object to see the properties.

eg:

var_dump($article);

That should show you which is the correct category property.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#569
p0oo9ip0o (User)
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Re:How to add additional text 3 Years, 1 Month ago Karma: 0  
I don't now how to use var_dump(), I've try var_dump($article); and there are message showing this

object(stdClass)#261 (46) { ["id"]=> string(4) "4625" ["title"]=> string(51)
["alias"]=> string(49) "test article" ["title_alias"]=> string(0) "" ["introtext"]=> string(647)
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#571
admin (Admin)
Admin
Posts: 475
graph
User Online Now Click here to see the profile of this user
Re:How to add additional text 3 Years, 1 Month ago Karma: 10  
Please look for category or cat in the output, or post the whole output of var_dump().
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#573
p0oo9ip0o (User)
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Re:How to add additional text 3 Years, 1 Month ago Karma: 0  
I think this is the whole result btw the title of the article is "Hajime No Ippo: New Challenger Episode 1: Episode 1" and the category is Hajime No Ippo: New Challenger

object(stdClass)#265 (46) { ["id"]=> string(4) "4625" ["title"]=> string(51) "Hajime No Ippo: New Challenger Episode 1: Episode 1" ["alias"]=> string(49) "hajime-no-ippo-new-challenger-episode-1-episode-1" ["title_alias"]=> string(0) "" ["introtext"]=> string(647) "

{additionaltext}

" ["fulltext"]=> string(0) "" ["state"]=> string(1) "1" ["sectionid"]=> string(2) "11" ["mask"]=> string(1) "0" ["catid"]=> string(3) "279" ["created"]=> string(19) "2009-01-08 12:35:57" ["created_by"]=> string(2) "63" ["created_by_alias"]=> string(0) "" ["modified"]=> string(19) "0000-00-00 00:00:00" ["modified_by"]=> string(1) "0" ["checked_out"]=> string(1) "0" ["checked_out_time"]=> string(19) "0000-00-00 00:00:00" ["publish_up"]=> string(19) "2009-01-07 16:00:00" ["publish_down"]=> string(5) "Never" ["images"]=> string(0) "" ["urls"]=> string(0) "" ["attribs"]=> string(0) "" ["version"]=> string(1) "1" ["parentid"]=> string(1) "0" ["ordering"]=> string(1) "1" ["metakey"]=> string(51) "Hajime No Ippo: New Challenger Episode 1: Episode 1" ["metadesc"]=> string(51) "Hajime No Ippo: New Challenger Episode 1: Episode 1" ["access"]=> string(1) "0" ["hits"]=> string(2) "11" ["metadata"]=> string(0) "" ["author"]=> string(4) "mike" ["usertype"]=> string(13) "Administrator" ["category"]=> string(30) "Hajime no Ippo: New Challenger" ["section"]=> string(20) "Ongoing Anime Series" ["slug"]=> string(54) "4625:hajime-no-ippo-new-challenger-episode-1-episode-1" ["catslug"]=> string(39) "279:watch-hajime-no-ippo-new-challenger" ["groups"]=> string(6) "Public" ["sec_pub"]=> string(1) "1" ["cat_pub"]=> string(1) "1" ["sec_access"]=> string(1) "0" ["cat_access"]=> string(1) "0" ["rating_count"]=> int(0) ["rating"]=> int(0) ["text"]=> string(649) "

" ["parameters"]=> &object(JParameter)#266 (7) { ["_raw"]=> string(345) "show_noauth=0 show_title=1 link_titles=0 show_intro=1 show_section=0 link_section=0 show_category=0 link_category=0 show_author=1 show_create_date=0 show_modify_date=0 show_item_navigation=1 show_readmore=0 show_vote=0 show_icons=1 show_pdf_icon=0 show_print_icon=0 show_email_icon=1 show_hits=1 feed_summary=1 filter_tags= filter_attritbutes= " ["_xml"]=> NULL ["_elements"]=> array(0) { } ["_elementPath"]=> array(1) { [0]=> string(63) "/home/mikey/public_html/libraries/joomla/html/parameter/element" } ["_defaultNameSpace"]=> string(8) "_default" ["_registry"]=> array(1) { ["_default"]=> array(1) { ["data"]=> object(stdClass)#267 (35) { ["show_noauth"]=> string(1) "0" ["show_title"]=> string(1) "1" ["link_titles"]=> string(1) "0" ["show_intro"]=> string(1) "1" ["show_section"]=> string(1) "0" ["link_section"]=> string(1) "0" ["show_category"]=> string(1) "0" ["link_category"]=> string(1) "0" ["show_author"]=> string(1) "1" ["show_create_date"]=> string(1) "0" ["show_modify_date"]=> string(1) "0" ["show_item_navigation"]=> string(1) "1" ["show_readmore"]=> string(1) "0" ["show_vote"]=> string(1) "0" ["show_icons"]=> string(1) "1" ["show_pdf_icon"]=> string(1) "0" ["show_print_icon"]=> string(1) "0" ["show_email_icon"]=> string(1) "1" ["show_hits"]=> string(1) "1" ["feed_summary"]=> string(1) "1" ["filter_tags"]=> string(0) "" ["filter_attritbutes"]=> string(0) "" ["show_description"]=> string(1) "0" ["show_description_image"]=> string(1) "0" ["show_categories"]=> string(1) "1" ["show_empty_categories"]=> string(1) "1" ["show_cat_num_articles"]=> string(1) "1" ["show_category_description"]=> string(1) "0" ["show_feed_link"]=> string(1) "1" ["show_page_title"]=> string(1) "1" ["menu_image"]=> string(2) "-1" ["secure"]=> string(1) "0" ["page_title"]=> string(20) "Ongoing Anime Series" ["page_description"]=> string(140) "AnimeStreamonline.com Watch Anime Online! Watch the latest Anime Series and Anime Episodes. Stream Full Anime episodes Online, Anime Movies." ["popup"]=> string(1) "0" } } } ["_errors"]=> array(0) { } } ["readmore_link"]=> string(114) "/ongoingseries/279-watch-hajime-no-ippo-new-challenger/4625-hajime-no-ippo-new-challenger-episode-1-episode-1.html" }
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Joomla Downloads

DownloadsDownload our free Joomla! Components, Modules and Plugins.