UltraBB Forums Home 
Home Search search Menu menu Not logged in - Login | Register
UltraBB Forums > UltraBB > Software Assistance > How to edit buttons

 Moderated by: martin_wynne Page:  First Page Previous Page  1  2   
New Topic Reply Printer Friendly
How to edit buttons  Rate Topic 
AuthorPost
 Posted: Mon Jan 16th, 2012 06:33 am
  PM Quote Reply
21st Post
tanygaer
TOIDI


Joined: Mon Jun 16th, 2008
Location: Rhosgadfan, North Wales, United Kingdom
Posts: 2967
Status: 
Offline
Mana: 
User Gallery
you could try

!site_header
!button_set_start
?mark_all_read('!tab($tab_caption='<p style="text-align: center;"><a class="navbutton" align="center" href="/forum/index.php?mark_all_read=1">%mark_all_forums_read</a></p>')':'')


not promising that will work though as I cant remember if the table cell stretches the full width of the page

Back To Top PM Quote Reply  

 Posted: Mon Jan 16th, 2012 04:09 pm
  PM Quote Reply
22nd Post
Devans
License Holder


Joined: Tue May 27th, 2008
Location: Iowa USA
Posts: 1581
Status: 
Offline
Mana: 
User Gallery
Thanks David, but nope, didn't work.

Back To Top PM Quote Reply

 Posted: Mon Jan 16th, 2012 04:37 pm
  PM Quote Reply
23rd Post
martin_wynne
Licence Holder


Joined: Sun May 25th, 2008
Location: West Of The Severn, United Kingdom
Posts: 2013
Status: 
Offline
Mana: 
User Gallery
Hi Dean,

It probably varies with different themes.

If you post your template code, and a screenshot showing what you want to move from where to where on which page, we can probably sort it out for you.

regards,

Martin.

Back To Top PM Quote Reply  

 Posted: Mon Jan 16th, 2012 04:46 pm
  PM Quote Reply
24th Post
tanygaer
TOIDI


Joined: Mon Jun 16th, 2008
Location: Rhosgadfan, North Wales, United Kingdom
Posts: 2967
Status: 
Offline
Mana: 
User Gallery
Its not going to be easy to do, in most of the themes there is an empty table cell prior to the table cell that the button is in, the empty table cell has its width set at 100% thereby taking up all the spare space.

I suppose you could move the contents to the empty cell, a lot of mucking around though

Back To Top PM Quote Reply

 Posted: Mon Jan 16th, 2012 07:32 pm
  PM Quote Reply
25th Post
Devans
License Holder


Joined: Tue May 27th, 2008
Location: Iowa USA
Posts: 1581
Status: 
Offline
Mana: 
User Gallery
Thats fine, thanks for the help. I can deal with it being left justified, but what about at least getting a couple spaces between the Mark forums read and the first Category - is that an easy?

Attached Image (viewed 65 times):

space.png

Back To Top PM Quote Reply  

 Posted: Mon Jan 16th, 2012 07:35 pm
  PM Quote Reply
26th Post
tanygaer
TOIDI


Joined: Mon Jun 16th, 2008
Location: Rhosgadfan, North Wales, United Kingdom
Posts: 2967
Status: 
Offline
Mana: 
User Gallery
Devans wrote: Thats fine, thanks for the help. I can deal with it being left justified, but what about at least getting a couple spaces between the Mark forums read and the first Category - is that an easy?
without more of a view of the code I cannot advise, are the tables intact?

Back To Top PM Quote Reply

 Posted: Mon Jan 16th, 2012 07:38 pm
  PM Quote Reply
27th Post
Devans
License Holder


Joined: Tue May 27th, 2008
Location: Iowa USA
Posts: 1581
Status: 
Offline
Mana: 
User Gallery
This is all thats left of it.. :)

!site_header
!button_set_start
?mark_all_read('!tab($tab_caption='<a class="navbutton" href="/forum/index.php?mark_all_read=1"><tr><td class="clean" width="100%">%mark_all_forums_read</td></tr></a><p>')':'')
!button_set_end

Back To Top PM Quote Reply  

 Posted: Mon Jan 16th, 2012 07:52 pm
  PM Quote Reply
28th Post
tanygaer
TOIDI


Joined: Mon Jun 16th, 2008
Location: Rhosgadfan, North Wales, United Kingdom
Posts: 2967
Status: 
Offline
Mana: 
User Gallery
whats the P tag for?

Back To Top PM Quote Reply

 Posted: Mon Jan 16th, 2012 07:53 pm
  PM Quote Reply
29th Post
tanygaer
TOIDI


Joined: Mon Jun 16th, 2008
Location: Rhosgadfan, North Wales, United Kingdom
Posts: 2967
Status: 
Offline
Mana: 
User Gallery
fire it up in a browser and copy the full source code for us to see..

Back To Top PM Quote Reply  

 Posted: Tue Jan 17th, 2012 09:33 pm
  PM Quote Reply
30th Post
Devans
License Holder


Joined: Tue May 27th, 2008
Location: Iowa USA
Posts: 1581
Status: 
Offline
Mana: 
User Gallery
appreciate the help, but I think Im just going to go with left justified. seems to look a bit better anyway. :)

Back To Top PM Quote Reply

 Posted: Fri Jan 27th, 2012 07:43 am
  PM Quote Reply
31st Post
tanygaer
TOIDI


Joined: Mon Jun 16th, 2008
Location: Rhosgadfan, North Wales, United Kingdom
Posts: 2967
Status: 
Offline
Mana: 
User Gallery
Well I promised to post the answer to my problem if I ever found it

this is it

function insertNodeAtCaret(node) { if (typeof window.getSelection != "undefined") { sel = window.getSelection(); if (savedRange != null) { var range = sel.getRangeAt(0); savedRange.collapse(false); savedRange.insertNode(node); savedRange = savedRange.cloneRange(); savedRange.selectNodeContents(node); savedRange.setStartAfter(node); savedRange.collapse(false); sel.removeAllRanges(); sel.addRange(savedRange); } } else if (typeof document.selection != "undefined" && document.selection.type != "Control") { var html = (node.nodeType == 1) ? node.outerHTML : node.data; var id = "marker_" + ("" + Math.random()).slice(2); html += '<span id="' + id + '"></span>'; savedRange.collapse(false); savedRange.pasteHTML(html); var markerSpan = document.getElementById(id); savedRange.moveToElementText(markerSpan); savedRange.select(); markerSpan.parentNode.removeChild(markerSpan); } }

Back To Top PM Quote Reply  

 Posted: Fri Feb 3rd, 2012 06:50 am
  PM Quote Reply
32nd Post
Chaunceytoth
Chauncey Toth


Joined: Fri Feb 3rd, 2012
Location:  
Posts: 1
Status: 
Offline
Mana: 
User Gallery
I am having problem with 'mark all read forums'.I get a message that says "incorrect forum specified" when i try to mark all forums read. Can somebody tell me in detail what should i do?

Back To Top PM Quote Reply

 Posted: Fri Feb 3rd, 2012 07:21 am
  PM Quote Reply
33rd Post
tanygaer
TOIDI


Joined: Mon Jun 16th, 2008
Location: Rhosgadfan, North Wales, United Kingdom
Posts: 2967
Status: 
Offline
Mana: 
User Gallery
Chaunceytoth wrote: I am having problem with 'mark all read forums'.I get a message that says "incorrect forum specified" when i try to mark all forums read. Can somebody tell me in detail what should i do?


No doubt if you post is genuine, someone will give you a steer, however if it is just a flagarent attempt to hide the spam link that was in the post, you will no doubt note that I have removed it.

Many thanks for dropping by.

Back To Top PM Quote Reply  

 Posted: Fri Feb 3rd, 2012 12:48 pm
  PM Quote Reply
34th Post
Marty
Helpy Helper


Joined: Mon May 7th, 2007
Location: Chicago, Illinois USA
Posts: 1070
Status: 
Offline
Mana: 
User Gallery
Chaunceytoth wrote: I am having problem with 'mark all read forums'.I get a message that says "incorrect forum specified" when i try to mark all forums read. Can somebody tell me in detail what should i do?


This occurs when you have spam in your forum. Spam causes error messages that are not in the language packs to appear.

Back To Top PM Quote Reply

 Posted: Fri Feb 3rd, 2012 06:16 pm
  PM Quote Reply
35th Post
Robert
Member


Joined: Fri Jul 18th, 2008
Location: Benidorm, Spain
Posts: 1359
Status: 
Offline
Mana: 
User Gallery
That makes a lot of sense after what Dave had to say. Is there any way of accessing the language packs so that I could check for myself if an error message is a genuine one or not. Or would it just be quicker to come on here with the error message?

Last edited on Fri Feb 3rd, 2012 06:17 pm by Robert

Back To Top PM Quote Reply  

 Posted: Fri Feb 3rd, 2012 06:36 pm
  PM Quote Reply
36th Post
martin_wynne
Licence Holder


Joined: Sun May 25th, 2008
Location: West Of The Severn, United Kingdom
Posts: 2013
Status: 
Offline
Mana: 
User Gallery
Robert wrote: That makes a lot of sense after what Dave had to say. Is there any way of accessing the language packs so that I could check for myself if an error message is a genuine one or not.
Hi Bob,

Go to Admin > Advanced > Language Editor.

Choose English and Main in the drop down boxes at the top.

Be warned -- it's a long page. :)

regards,

Martin.

Back To Top PM Quote Reply

 Posted: Fri Feb 3rd, 2012 07:10 pm
  PM Quote Reply
37th Post
Robert
Member


Joined: Fri Jul 18th, 2008
Location: Benidorm, Spain
Posts: 1359
Status: 
Offline
Mana: 
User Gallery
Hello Martin,

My word you're right there it's a heck of a length. I take it then that any error that comes up and is not on that list must be from spam or some other source.

Cheers.

Bob

Back To Top PM Quote Reply  

 Posted: Fri Feb 3rd, 2012 07:23 pm
  PM Quote Reply
38th Post
Marty
Helpy Helper


Joined: Mon May 7th, 2007
Location: Chicago, Illinois USA
Posts: 1070
Status: 
Offline
Mana: 
User Gallery
Some of the error messages are actually harded coded and not in the language pack if I remember correctly.

I was more saying than to be sarcastic as this is obviously a spammer with the hidd spam link removed by David.

Back To Top PM Quote Reply

 Posted: Fri Feb 3rd, 2012 07:27 pm
  PM Quote Reply
39th Post
Robert
Member


Joined: Fri Jul 18th, 2008
Location: Benidorm, Spain
Posts: 1359
Status: 
Offline
Mana: 
User Gallery
Ah, maybe not as helpful as I first thought then?

Back To Top PM Quote Reply  

Current time is 10:13 am Page:  First Page Previous Page  1  2     
UltraBB Forums > UltraBB > Software Assistance > How to edit buttons Top



Hosting

UltraBB 1.17 Copyright © 2007-2011 Data 1 Systems, INC.
Page processed in 0.3922 seconds (15% database + 85% PHP). 28 queries executed.