Gossamer Forum
Home : Products : Gossamer Forum : Development, Plugins and Globals :

Adding a new title to category forums

Quote Reply
Adding a new title to category forums
Hi I created a tag to customize my forum names in my forums... This works for the individual forums such as this one "Development, Plugins and Globals" But it doesn't work in the category_list.html template for the categories.

I created a title and custom description tags then inserted them via <%if description%> <%description%><%endif%> on my forum pages.... and modify the individual forums via the gforums admin panel. after creating the table entries.

I'm now trying to do this on the main category sections such as "Gossmar Forum" and "links Sql"
But when I insert the same tags <%if description%> <%description%><%endif%> nothing happens... I also created the table in the database, and called the correct name. on the category_list.html page.

When I tried just <%description%> it gave me "unknown tag error" so i even tried adding the sub
Code:

sub {
$IN->param('description')
}


but it didn't work...

After I ran the dump via <%GT::Template::dump%> on the category_list.html page

I noticed within the everything field it showed the field "description" with the text I was trying to display, how could I access that on the main category_list page? If this didn't work on that page <%if description%> <%description%><%endif%>

Last edited by:

carminejg3: May 20, 2009, 1:21 AM
Quote Reply
Re: [carminejg3] Adding a new title to category forums In reply to
Quote:
I noticed within the everything field it showed the field "description" with the text I was trying to display, how could I access that on the main category_list page? If this didn't work on that page <%if description%> <%description%><%endif%>

Not really sure what you mean by "everything" ? If I'm understanding you, I think you wanna use:

Code:
<%everything.description%>

If that doesn't work, just show me the bit of the GT::Template::dump , so we can see what the output looks like.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Adding a new title to category forums In reply to
So I should try

Code:
<%if everything.description%><%everything.description%><%endif%>

basically the everything field had all the different category variables displayed as...
description => 'This is the description' along with all the other differnt options
Quote Reply
Re: [carminejg3] Adding a new title to category forums In reply to
The code we are playing with controls the individual categories... Since we are trying to get them all inded but they have dup content since the code uses the same descriptions on all categories... http://autoforums.carjunky.com/Automotive_Repair_C1/


Andy I was trying to display the 'forum_seo_title' => 'Repair' from in here... <%everything.forum_seo_title%> gave me the unknown tag error for everything.forum_seo_title


Code:

everything$VAR = [
{
'build_name' => '',
'cat_depth' => '0',
'cat_desc' => '',
'cat_full_name' => 'Repair',
'cat_id' => '1',
'cat_id_fk' => '0',
'cat_name' => 'Repair',
'cat_root' => '0',
'cat_show_forums' => '1',
'cat_sort_rank' => '100',
'forum_seo_title' => 'Repair',
'num_forums' => '9',
'num_subcats' => '0'
},
{
'build_name' => '',
'cat_depth' => '0',
'cat_desc' => '',
'cat_full_name' => 'Repair',
'cat_id' => '1',
'cat_id_fk' => '1',
'cat_name' => 'Repair',
'cat_root' => '0',
'cat_show_forums' => '1',
'cat_sort_rank' => '100',
'forum_allow_attachments' => '1',
'forum_allow_guest_attachments' => '0',
'forum_allow_user_edit' => '1',
'forum_attachment_inline' => '1',
'forum_attachment_max_size' => '307200',
'forum_attachments' => '0',
'forum_desc' => \'Get general forum.',
'forum_edit_timeout' => '0',
'forum_hard_delete' => '2',
'forum_id' => '5',
'forum_last' => '1242867102',
'forum_last_date' => \'May 20, 2009, 7:51 PM',
'forum_last_id' => '48411',
'forum_last_poster' => ' Sr',
'forum_meta_description' => 'repair',
'forum_meta_keyword' => repair',
'forum_move_pointer' => '1',
'forum_name' => 'General Discussions',
'forum_new_timeout' => '90',
'forum_permission' => '5',
'forum_seo_name' => 'Car,
'forum_seo_title' => 'Car',
'forum_sort_rank' => '0',
'forum_style' => '1',
'forum_time_passed' => '103.966666666667',
'forum_total' => '18055',
'forum_total_threads' => '5366',
'previous_was_cat' => '1'
},
{
'build_name' => '',
'cat_depth' => '0',
'cat_desc' => '',
'cat_full_name' => 'Repair',
'cat_id' => '1',
'cat_id_fk' => '1',
'cat_name' => 'Repair',
'cat_root' => '0',
'cat_show_forums' => '1',

Last edited by:

carminejg3: May 20, 2009, 9:13 PM
Quote Reply
Re: [carminejg3] Adding a new title to category forums In reply to
Sorry, not sure I understand your message. What did you try, and what did it return? (the full dump). Try doing <%DUMP everything%>

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates