miniBB ®  
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Official Addons and Solutions miniBB Support Forums / Official Addons and Solutions /   

Preview

Page  Page 3 of 3:  « Previous  1  2  3  
Author Paul
Lead Developer
#31 | Posted: 13 Apr 2012 19:53 
It seems you have pasted this code in a wrong place... most possibly before <?php tag...
You must be experienced enough to edit files that way.

Author jmcwebtrip
Registered
#32 | Posted: 13 Apr 2012 23:01 | Edited by: jmcwebtrip 
Sorry I forgot put the code between <?php and ?>

/* Preview addon */
if(isset($_POST['prevForm']) and $_POST['prevForm']==1) include($pathToFiles.'addon_preview2.php');
/* --Preview addon */

in bb_plugins.php .Now is working fine

Thanks Paul

Author Jaime
Registered
#33 | Posted: 21 Dec 2012 14:43 
When i have set one or more linebreak <br /> in an languagevariable, eg $anti_guest_rule1, then it works fine in the output from main_posthold, but not in preview-window. There i see the warningtext and the tags <br />. My mistake?

Author Paul
Lead Developer
#34 | Posted: 25 Dec 2012 15:23 
You are just the first person in the world trying to put straight HTML in the language variable.
Nowhere it's written that you will achieve the desired effect with it ;)
To let the preview working fine with <br /> tags, you should remove or replace them to newlines in advance, before the text is being output in preview's add-on.
You may modify addon_preview.php and add the following code:

$topicTitle2=stripslashes(textFilter($_POST['topicTitle'],.....);
$_POST['postText']=str_replace('<br />', "\n", $_POST['postText']);
$postText2=stripslashes(textFilter($_POST['postText'].....


Author Jaime
Registered
#35 | Posted: 27 Dec 2012 11:45 
Paul:
You are just the first person in the world trying to put straight HTML in the language variable.

Are you sure? Have a look at the language-file eng.php in the lines 68, 269, 417 an 418 :)

And in my preview
Because of spamming issues:

You are not allowed to post outgoing links, URLs or email addresses.

looks better than
Because of spamming issues, you are not allowed to post outgoing links, URLs or email addresses.

But is it a matter of taste, .. said the monkey and bit in the soap =8). And thanks for the code, works fine!

Author Paul
Lead Developer
#36 | Posted: 27 Dec 2012 17:17 
Jaime:
Are you sure?

I was meaning the language for anti-guest add-on.
It's good if it works :)

Author Jaime
Registered
#37 | Posted: 27 Dec 2012 18:32 
When i post as reg user and previw the post, i see there my username in the top. A Guest but also has a name, language-file default setting under $l_anonymous, or a freely chosen name .. but which can not be displayed? Would it look nice, or? But not now, I would absolutely have to be, I just noticed.

Author Paul
Lead Developer
#38 | Posted: 27 Dec 2012 20:46 
In default version, the username should not be displayed at all.
So I am a bit confused as I don't understand what you are about?..

Author Jaime
Registered
#39 | Posted: 28 Dec 2012 11:27 | Edited by: Jaime 
It's Done. It was about the display of the user name in the Preview window. I have the template adapted and applied in bb_plugings a separate variable.

if($user_id==0){
$previewUser=<<<out
Gast
out;
}
else{
$previewUser=<<<out
{$user_usr}
out;
}

When a guest opens the preview window then there is the name Guest on the top, otherwise, the name of the registered users. Sorry Paul, if I can express myself in English mostly wrong.

Author Paul
Lead Developer
#40 | Posted: 28 Dec 2012 12:42 | Edited by: Paul 
Ok. It's up to you how you moderate your custom implementations :)
I can't have an idea what's done on your end.

Page  Page 3 of 3:  « Previous  1  2  3 
Official Addons and Solutions miniBB Support Forums / Official Addons and Solutions / Preview Top
Your Reply Click this icon to move up to the quoted message
 Short link for this topic:

 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
  Extend your miniBB-forums, attaching the images and files,
get the File and Picture Attachments add-on!
Galleries / Attachments Addon for miniBB