Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Modding question
Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Mar 31, 2015 - 5:39 pm

I'm not sure why we are seeing it as 'view code' in no container rather than 'view raw code' in the syntax highlighter container..

When you copied the code from one of our posts above, did you highlight the whole block and manually delete the 1, 2, 3 list? Or did you 'View Raw Code' and copy it from there?

I just tried copying the block as you see it in a post and it does break the quote marks making them rich text.

Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Mar 31, 2015 - 5:40 pm

Ha!  I figured it out. In reply 12 your code has the incorrect quote.  I just changed it and the forum does not go blank, however the png does not show.  

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Mar 31, 2015 - 5:58 pm

So which folder is your .png in?

Can you look at the page source to see if it loads the image?

Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Mar 31, 2015 - 6:23 pm

The png is in the main reboot images folder.  I loaded the png in both the reboot and child folder.  Checked the source and do not see it loading.  Do I have to copy every image in the reboot child folder as well?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 31, 2015 - 8:53 pm

late to game and have not read the whole thread...  but you should only have to load the image in the child folder... it searches there first and wont search the parent if found...

Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Apr 1, 2015 - 4:28 pm

I placed the image in both the reboot and reboot child.  It still will not show up?

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Apr 1, 2015 - 6:50 pm

Just for your information, using the data inspector in the Forum > Toolbox, you can select whatever data a page is using to display on the page itself, so you can find what you need to reference. For forum view if you enable spThisTopic to display (under Forum View Data), when you view the forum page you will see all data, and can pick out what you need to use.

So, for this to display the image for individual topics with unread posts, try:

if ($spThisTopic->unread > 0) sp_AddIcon('tagClass=spRowIcon spRight&icon=sp_Unread.png');
Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Apr 1, 2015 - 8:57 pm

Ike said
Just for your information, using the data inspector in the Forum > Toolbox, you can select whatever data a page is using to display on the page itself, so you can find what you need to reference. For forum view if you enable spThisTopic to display (under Forum View Data), when you view the forum page you will see all data, and can pick out what you need to use.

So, for this to display the image for individual topics with unread posts, try:

<br />

if ($spThisTopic->unread > 0) sp_AddIcon('tagClass=spRowIcon spRight&icon=sp_Unread.png');

<br />

Awesome, this now works!  How can I fix the spacing in the picture below?  I need to shift the yellow arrows to the left a bit so the div breaks may match, as well as the icon on the right.

Image Enlarger

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 1, 2015 - 9:06 pm

for these kind of css issues, its best to use the inspector function of  your browser...  you can inspect the element and see what is driving it...  typically you can also what if your changes until you have it right, then just make the css changes...

especially since you want to change the spacing above the +1 image you added... so whatever class is applied image container, remove some margin or padding...  with a link, we could probably offer some guidance...

or do you mean why is the row with the image shifted?

in the code I gave you, I had you add a column all the time, image or not so stuff aligned...  did you do that?  it appears you just output an icon vice putting in a column to keep things aligned...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625