php forum
php mysql forum
php mysql smarty
 
Topic Options
#115401 - 05/04/03 10:55 AM 3 UBBNews Questions
Tunnleram Offline
Member

Registered: 11/26/01
Posts: 46
Recently I've been trying to edit my quote/code block looks, but I notice that no matter what I do it doesn't reflect the same look on the page the news is posted on.

What do I have to do to have it look the same? Do I have to edit the public_ubbnews.pl and how?

---

Is there a hack to show the poster's avatar along with his news post?

---

I notice that there are, for want of a better word, declarations(?) such as "$name_space->{topic_subject}" or "$name_space->{topic_author}" that will pull that specific information from the news post.

Are there more for other things? How do I find them? Where might they be listed?
_________________________
Tunnleram
TRAM Design
http://www.tramdesign.net

Top
#115402 - 05/04/03 12:01 PM Re: 3 UBBNews Questions
CTM Offline
Moderator / Da Masta

Registered: 11/23/01
Posts: 2567
1. Try using CSS to edit the look of the Quote/Code blocks instead. There's a topic around in this forum (posted by Allen) describing how to do it. smile

2. There sure is... Just add $user_profile[37] anywhere between the qq()s in sub NewsRow. It'll display wherever you put it. smile

3. AFAIK all of the @name_space array is used in UBBNews... You can grab the poster, posticon, topic name, date and time it was started, the number of replies to the topic, the forum and topic number... There may be more, I'll check for you.

Top
#115403 - 05/04/03 12:14 PM Re: 3 UBBNews Questions
Tunnleram Offline
Member

Registered: 11/26/01
Posts: 46
Quote:
quote:</font><hr />Originally posted by CTM:
1. Try using CSS...<hr /></blockquote>Yeah I read that thread, but I guess I just need some more CSS knowledge.

<blockquote><font class="small">quote:
[qb]Originally posted by CTM:
2. There sure is... Just add $user_profile[37] anywhere between the qq()s in sub NewsRow. It'll display wherever you put it. smile [/qb]
Hmm...this is what I have under sub NewsRow:

Code:
[/code]Where ever I add it I get an error. Later on I see this:

[code]
Quote:
quote:
Originally posted by CTM:
3. There may be more, I'll check for you.
Awesome thanks! smile
_________________________
Tunnleram
TRAM Design
http://www.tramdesign.net

Top
#115404 - 05/04/03 01:58 PM Re: 3 UBBNews Questions
CTM Offline
Moderator / Da Masta

Registered: 11/23/01
Posts: 2567
Ah, but there's more to sub NewsRow - Greg just didn't indent the if statement. smile The qq()s are straight underneath it.

Top
#115405 - 05/04/03 02:50 PM Re: 3 UBBNews Questions
Tunnleram Offline
Member

Registered: 11/26/01
Posts: 46
Hehe, you're acting as if I didn't start editting UBB stuff yesterday, but I honestly did haha

For qq()s all I can see that I might use to take a guess at what you're saying is:
Code:
[/code]and a few qq~ things underneath. Can you give me a better idea? Maybe with a quick sample of syntax? Excerpt of the code? I'll be able to make head or tails of it that way I'm sure.

Sorry to be so newbie   :p  ~

As far as 1. with the quoteblock I went back over that post (   http://www.ubbdev.com/ubb/ultimatebb.php?ubb=get_topic;f=20;t=000753#000000   ) and I was able to get what I wanted in terms of the border around it.

However I don't seem to be able to change the font size in the quoteblock regardless of what size I put in the CSS. 

In the first section is clearly says:
[code]
This gives me the impression that it's able to be changed. However any font setting I put in that section seem to go unnoticed.

I saw in another post that I'd have to change the font size for the quote block in a specific file, but when I did I realized only new posts with quoteblocks were affected.
_________________________
Tunnleram
TRAM Design
http://www.tramdesign.net

Top
#115406 - 05/04/03 04:29 PM Re: 3 UBBNews Questions
CTM Offline
Moderator / Da Masta

Registered: 11/23/01
Posts: 2567
Heheh, sorry laugh

This is the block that you'll need to use:

[code][/code]As for the CSS, the reason it won't work is because the sizes are hardcoded into UBBNews. Try removing all instances of size="x" inside font tags in that block that I just posted. smile

Top
#115407 - 05/04/03 08:52 PM Re: 3 UBBNews Questions
Tunnleram Offline
Member

Registered: 11/26/01
Posts: 46
CTM, you're crackin me up man hehe I do appreciate your help so don't take this the wrong way...

I know what the code looks like lol I've been staring at it for a while haha scratching my head, but where would $user_profile[37] go?

I've tried under $icon_row and a few other places, but it didn't do anything. Is there something else I need to do or am I just doing something stupid?

Also, sorry I wasn't more clear about the quoteblock. I was trying to change the size of the font in the forum as opposed to UBBNews.

omg I'm such a newbie lol
_________________________
Tunnleram
TRAM Design
http://www.tramdesign.net

Top
#115408 - 05/06/03 12:40 AM Re: 3 UBBNews Questions
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
You're right Tunnleram...The reason your QuoteBlock font doesn't change even with CSS is because it's hardcoded into the UBB Quote block located in ubb_lib.cgi and/or ubb_lib_posting.cgi files. You'll have to get rid of the <font> tags in order to make the CSS work. Everything else however, including the CSS bordering, will change.

I'll have to re-read your other questions later to get an idea what you want to do. I think CTM covered it but I'll take a look at it too. smile
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top



Moderator:  Gizmo, tackaberry 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks