UBB.Dev
Posted By: Gizmo New Topic Reply New Poll - 08/17/2002 4:18 AM
I am running the Cosmetic Links modification on my forums. I have everything setup perfectly only my "New Topic" "Post Reply" and "Post A Poll" images have spaces and don't really tie into my cosmetic links.

My question is how do I remove the two spaces inbetween the images? I'm woundering this for mainly the top row (top of board) and possibly the spaces for under the "All times are Pacific Time" text.

See the example of my layout Here .

I think that it'd make the design look better if I could get this done smile .

I'm also woundering if anyone knows how to remove the two spaces in the "Instant UBB Code" window between images.

Any help will be very appreciated.
Gizzy
[email protected]
Posted By: Lord Dexter Re: New Topic Reply New Poll - 08/17/2002 10:21 AM
Remove any between the variable codes in public_topic_page.pl to get rid of spaces inbetween the Topic, Reply and poll buttons.
Posted By: CTM Re: New Topic Reply New Poll - 08/17/2002 10:41 AM
Just to elaborate on what Tony said...

public_topic_page.pl, find:

Quote
code:
Code
$topic_wording $poll_link $reply_wording

Replace with:

code:
[qb]
Code
$topic_wording$poll_link$reply_wording
[/qb]
Reupload, clear cache. smile
Posted By: Lord Dexter Re: New Topic Reply New Poll - 08/17/2002 1:51 PM
Heh sorry with the akward space in my last post. It was supposed to be a & nbsp; (No space)
Posted By: Gizmo Re: New Topic Reply New Poll - 08/18/2002 4:03 AM
Thanks guys... Any ideas on the bold and italic set of buttons?
Posted By: Gizmo Re: New Topic Reply New Poll - 08/18/2002 4:08 AM
I did that "mod" yet I still have a single space frown , any ideas?

$topic_wording$poll_link$reply_wording

example: http://www.undergroundnews.com/cgi-bin/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=18;t=000155
Posted By: Lord Dexter Re: New Topic Reply New Poll - 08/18/2002 11:40 AM
Thats strange, it should work.

Do you have any background on your images?
Posted By: CTM Re: New Topic Reply New Poll - 08/18/2002 11:52 AM
Have you cleared your UBB's cache?
Posted By: Gizmo Re: New Topic Reply New Poll - 08/18/2002 12:25 PM
The cache is cleared, there are two (2) spaces between the images, with the mod sugguested it removes one (1) of the spaces...

There is no background to the images as you can see compaired to the others.
Posted By: CTM Re: New Topic Reply New Poll - 08/18/2002 12:35 PM
I'm stupid. wink

I also forgot to check out ubb_lib_posting.cgi; find:

Quote
code:
Code
			$poll_link = qq! <a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=poll;d=create;f=$in{f}"><img src="$vars_config{NonCGIURL}/$vars_style{BBPoll}" alt="$vars_wordlets_poll{new_poll}" border="0" /></a> !;

Replace with:

code:
[qb]
Code
			$poll_link = qq!<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=poll;d=create;f=$in{f}"><img src="$vars_config{NonCGIURL}/$vars_style{BBPoll}" alt="$vars_wordlets_poll{new_poll}" border="0" /></a>!;
[/qb]
Clear cache, and hopefully all should be working smile
Posted By: Gizmo Re: New Topic Reply New Poll - 08/18/2002 1:06 PM
CGIPath/ubb_lib_posting.cgi: syntax error at CGIPath/ubb_lib_posting.cgi line 986, near " "
Unmatched right curly bracket at CGIPath/ubb_lib_posting.cgi line 1454, at end of line
syntax error at CGIPath/ubb_lib_posting.cgi line 1454, near "}"

Please inform the board administration of this error so that they may fix the problem. Thank you!
Posted By: LK Re: New Topic Reply New Poll - 08/18/2002 2:54 PM
Gizzy, you made a mistake - rehack from backup file.

Also, your sig image is huge - please make it max 150x50.
Posted By: Gizmo Re: New Topic Reply New Poll - 08/19/2002 12:34 AM
How did I make a "mistake" I edited the file EXACTLY how he had stated.

And I'll edit the image momentarily.
Posted By: Gizmo Re: New Topic Reply New Poll - 08/19/2002 12:45 AM
::hits head:: now it starts working lol...

Anyone have any ideas on the images from the topic summary for the images? shouldn't be too hard i don't think frown .
Posted By: Gizmo Re: New Topic Reply New Poll - 08/19/2002 7:49 AM
Ok I have the topic summary done via ubb_forum.cgi but I'm still curious about the "Instant UBB Code" section.
Posted By: LK Re: New Topic Reply New Poll - 08/19/2002 10:17 AM
public_common.pl:
Quote
code:
Code
	my $ubb_code_buttons = qq~
<a href="javascript: x()" onclick="DoPrompt('url');"><img src="$vars_config{NonCGIURL}/$vars_style{ubbcode_url}" border="0" alt="$vars_wordlets_img{ubb_code_url}" /></a>
 
<a href="javascript: x()" onclick="DoPrompt('email');"><img src="$vars_config{NonCGIURL}/$vars_style{ubbcode_email_url}" border="0" alt="$vars_wordlets_img{ubb_code_email}" /></a>


<a href="javascript: x()" onclick="DoPrompt('bold');"><img src="$vars_config{NonCGIURL}/$vars_style{ubbcode_bold}" border="0" alt="$vars_wordlets_img{ubb_code_bold}" /></a>
 
<a href="javascript: x()" onclick="DoPrompt('italics');"><img src="$vars_config{NonCGIURL}/$vars_style{ubbcode_italics}" border="0" alt="$vars_wordlets_img{ubb_code_italics}" /></a>


<a href="javascript: x()" onclick="DoPrompt('quote');"><img src="$vars_config{NonCGIURL}/$vars_style{ubbcode_ubb_quote}" border="0" alt="$vars_wordlets_img{ubb_code_quote}" /></a>
 
<a href="javascript: x()" onclick="DoPrompt('code');"><img src="$vars_config{NonCGIURL}/$vars_style{ubbcode_code}" border="0" alt="$vars_wordlets_img{ubb_code_code}" /></a>


<a href="javascript: x()" onclick="DoPrompt('liststart');"><img src="$vars_config{NonCGIURL}/$vars_style{ubbcode_list_start}" border="0" alt="$vars_wordlets_img{ubb_code_list_start}" /></a>
 
<a href="javascript: x()" onclick="DoPrompt('listitem');"><img src="$vars_config{NonCGIURL}/$vars_style{ubbcode_list_item}" border="0" alt="$vars_wordlets_img{ubb_code_list_item}" /></a>


<a href="javascript: x()" onclick="DoPrompt('listend');"><img src="$vars_config{NonCGIURL}/$vars_style{ubbcode_list_end}" border="0" alt="$vars_wordlets_img{ubb_code_list_end}" /></a>
 
~;

Try to replace that code with:
code:
[qb]
Code
	my $ubb_code_buttons = qq~
<a href="javascript: x()" onclick="DoPrompt('url');"><img src="$vars_config{NonCGIURL}/$vars_style{ubbcode_url}" border="0" alt="$vars_wordlets_img{ubb_code_url}" /></a><a href="javascript: x()" onclick="DoPrompt('email');"><img src="$vars_config{NonCGIURL}/$vars_style{ubbcode_email_url}" border="0" alt="$vars_wordlets_img{ubb_code_email}" /></a>


<a href="javascript: x()" onclick="DoPrompt('bold');"><img src="$vars_config{NonCGIURL}/$vars_style{ubbcode_bold}" border="0" alt="$vars_wordlets_img{ubb_code_bold}" /></a><a href="javascript: x()" onclick="DoPrompt('italics');"><img src="$vars_config{NonCGIURL}/$vars_style{ubbcode_italics}" border="0" alt="$vars_wordlets_img{ubb_code_italics}" /></a>


<a href="javascript: x()" onclick="DoPrompt('quote');"><img src="$vars_config{NonCGIURL}/$vars_style{ubbcode_ubb_quote}" border="0" alt="$vars_wordlets_img{ubb_code_quote}" /></a><a href="javascript: x()" onclick="DoPrompt('code');"><img src="$vars_config{NonCGIURL}/$vars_style{ubbcode_code}" border="0" alt="$vars_wordlets_img{ubb_code_code}" /></a>


<a href="javascript: x()" onclick="DoPrompt('liststart');"><img src="$vars_config{NonCGIURL}/$vars_style{ubbcode_list_start}" border="0" alt="$vars_wordlets_img{ubb_code_list_start}" /></a><a href="javascript: x()" onclick="DoPrompt('listitem');"><img src="$vars_config{NonCGIURL}/$vars_style{ubbcode_list_item}" border="0" alt="$vars_wordlets_img{ubb_code_list_item}" /></a>


<a href="javascript: x()" onclick="DoPrompt('listend');"><img src="$vars_config{NonCGIURL}/$vars_style{ubbcode_list_end}" border="0" alt="$vars_wordlets_img{ubb_code_list_end}" /></a>~;
[/qb]
Posted By: Gizmo Re: New Topic Reply New Poll - 08/19/2002 10:30 AM
Thank you LK, I'll give it a go tonight smile . As always you are my hero wink ..
© UBB.Developers